//
//  OperationCollectionViewCell.m
//  lsOA
//
//  Created by 蓝水软件 on 2016/10/21.
//  Copyright © 2016年 苏州蓝水有限公司. All rights reserved.
//

#import "OperationCollectionViewCell.h"

@implementation OperationCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        _imageView = [[UIImageView alloc]init];
        [self.contentView addSubview:_imageView];
        float width = 0.4* CGRectGetHeight(self.contentView.frame);

        [_imageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(CGRectGetHeight(self.contentView.frame)*0.2);
            make.centerX.equalTo(self.contentView);
            make.size.mas_equalTo(CGSizeMake(width, width));
        }];
        _label = [UILabel new];
        _label.textColor = [UIColor grayColor];
        _label.font = [UIFont systemFontOfSize:16];
        _label.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_label];
        [_label mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(_imageView.mas_bottom).offset(3);
            make.width.equalTo(self.contentView);
            make.height.mas_equalTo(30);
        }];
    }
    return self;
}



@end
